TEMPLATE = lib
TARGET = NetCon
QT += qml quick network
CONFIG += plugin c++14

DEFINES += PANGUPLUGIN_LIBRARY

TARGET = $$qtLibraryTarget($$TARGET)
uri = MyNetCon

# Input
SOURCES += \
        clientmanager.cpp \
        netcon_plugin.cpp \
        mynetcon.cpp \
        newconrect.cpp

HEADERS += \
        clientmanager.h \
        netcon_plugin.h \
        mynetcon.h \
        newconrect.h


#用于查找包含的头文件
INCLUDEPATH += \
    $$PWD/../include/

#指定在何处放置目标文件
DESTDIR += \
    $$PWD/../lib/NetCon

#指定目标库文件放置的目录
DLLDESTDIR += \
    $$PWD/../bin/NetCon

#指定工程要链接的库
LIBS += \
    $$PWD/../lib/libTcpManager.a

DISTFILES = qmldir

qmldir.files = qmldir
unix {
    installPath = $$[QT_INSTALL_QML]/$$replace(uri, \., /)
    qmldir.path = $$installPath
    target.path = $$installPath
    INSTALLS += target qmldir
}

# 拷贝到Makefile路径下面
TARGET += qmldir

RESOURCES += \
    NetConplugin.qrc
